/*
 * @Author: your name
 * @Date: 2020-09-18 10:44:30
 * @LastEditTime: 2020-10-05 10:00:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\SummaryRealTime.js
 */
module.exports = app => {
  const mongoose = app.mongoose
  const SummaryRealTimeSchema = new mongoose.Schema({
    时间: { type: String, unique: false },
    汇总信息: {
      门架异常比例: { type: Number, unique: false },
      门架总数量: { type: Number, unique: false },
      异常门架总数量: { type: Number, unique: false },
      高速拥堵比例: { type: Number, unique: false },
      货运比例: { type: Number, unique: false },
      客运比例: { type: Number, unique: false },
      客车数量: { type: Number, unique: false },
      货车数量: { type: Number, unique: false },
      专项作业车数量: { type: Number, unique: false },
    },
    运行排行: [{
      排名: { type: Number, unique: false },
      起点: { type: String, unique: false },
      终点: { type: String, unique: false },
      运力: { type: Number, unique: false },
    }],
  })
  return mongoose.model('SummaryRealTime', SummaryRealTimeSchema)
}



